import 'package:flutter/material.dart';
import 'package:fluro/fluro.dart';
import './router_handler.dart';

class Routes {
  static String root = '/';
  static String indexPage = '/indexPage';
  static String homePage = '/homePage';
  static String login = '/login';
  static String driverRegistration = '/driverRegistration';
  static String publicityIntroduction = '/publicityIntroduction';
  static String urbanChoice = '/urbanChoice';
  static String authenticationAudit = '/authenticationAudit';
  static String uploadIdCard = '/uploadIdCard';
  static String drivingLicenseVehicle = '/drivingLicenseVehicle';
  static String vehicleOwnerAudit = '/vehicleOwnerAudit';
  static String auditInProgress = '/auditInProgress';
  static String myIncomeRecord = '/myIncomeRecord';
  static String orderModeSettings = '/orderModeSettings';
  static String orderStatistics = '/orderStatistics';
  static String messageCenter = '/messageCenter';
  static String detailsSystemNotification = '/detailsSystemNotification';
  static String detailsMessage = '/detailsMessage';
  static String personalCenter = '/personalCenter';
  static String myVehicle = '/myVehicle';
  static String newVehicleInformation = '/newVehicleInformation';
  static String pickUpPassengers = '/pickUpPassengers';
  static String detailsOfItineraryOrders = '/detailsOfItineraryOrders';
  static String cancellationOrder = '/cancellationOrder';
  static String successfulCancellationOrder = '/successfulCancellationOrder';
  static String confirmedAmount = '/confirmedAmount';
  static String endTrip = '/endTrip';
  static String wallet = '/wallet';
  static String cashWithdrawal = '/cashWithdrawal';
  static String cashwithdrawalSubmission = '/cashwithdrawalSubmission';
  static String itineraryOrder = '/itineraryOrder';
  static String itineraryOrderDetails = '/itineraryOrderDetails';
  static String appSetUp = '/appSetUp';
  static String customerServiceCenter = '/customerServiceCenter';
  static String about = '/about';
  static String inviteGoodFriends = '/inviteGoodFriends';
  static String personalData = '/personalData';
  static String webAppView = '/webAppView';
  static String flutterInappwebview = '/flutterInappwebview';
  static String intercityQrCodeCollection = '/intercityQrCodeCollection';
  static String intercityPickUpPassengers = '/intercityPickUpPassengers';
  static String setCollectionAmount = '/setCollectionAmount';
  static String locationSearchPage = '/locationSearchPage';
  static String generateWindmillTrip = '/generateWindmillTrip';
  static String carpoolTrip = '/carpoolTrip';
  static String carpoolFellowPassengers = '/carpoolFellowPassengers';
  static String lookingPassengers = '/lookingPassengers';
  static String takePassengers = '/takePassengers';
  static String carpoolPickupPassengers = '/carpoolPickupPassengers';
  static String realNameAuthentication = '/realNameAuthentication';
  static String myQrCode = '/myQrCode';
  static String modifyNickname = '/modifyNickname';
  static String flightPassengers = '/flightPassengers';
  static String getOnByTicket = '/getOnByTicket';
  static String professionalQualification = '/professionalQualification';
  static String authorizationRecord = "/authorizationRecord";
  static String agreementRecoid = "/agreementRecoid";
  static String pickupQrScan = "/pickupQrScan";
  static String paymentResult = "/paymentResult";
  static String realNameAuthen = "/realNameAuthen";
  static String carpoolPassengerMap = "/carpoolPassengerMap";
  static String personalDetailData = "/personalDetailData";
  static String certificatesInfo = "/certificatesInfo";
  static String billTabDetail = "/billTabDetail";

  static void configureRoutes(FluroRouter router) {
    router.notFoundHandler = new Handler(
      // ignore: missing_return
      handlerFunc: (BuildContext context, Map<String, List<String>> params) {
        print('ERROR====>ROUTE WAS NOT FONUND!!!'); // 找不到路由，跳转404页面
        // Navigator.pushNamed(context, "/notFound");
        // Navigator.of(context).pushNamed("NotFound");
        print('找不到路由，404');
        // return Login();
      },
    );

    // 路由页面配置
    // router.define('/category/error/404', handler: notFoundHanderl);

    router.define(indexPage, handler: indexPageHanderl);
    router.define(login, handler: loginHanderl);
    router.define(driverRegistration, handler: driverRegistrationHanderl);
    router.define(publicityIntroduction, handler: publicityIntroductionHanderl);
    router.define(urbanChoice, handler: urbanChoiceHanderl);
    router.define(authenticationAudit, handler: authenticationAuditHanderl);
    router.define(uploadIdCard, handler: uploadIdCardHanderl);
    router.define(drivingLicenseVehicle, handler: drivingLicenseVehicleHanderl);
    router.define(vehicleOwnerAudit, handler: vehicleOwnerAuditHanderl);
    router.define(auditInProgress, handler: auditInProgressHanderl);
    router.define(myIncomeRecord, handler: myIncomeRecordHanderl);
    router.define(orderModeSettings, handler: orderModeSettingsHanderl);
    router.define(orderStatistics, handler: orderStatisticsHanderl);
    router.define(messageCenter, handler: messageCenterHanderl);
    router.define(detailsSystemNotification,
        handler: detailsSystemNotificationHanderl);
    router.define(detailsMessage, handler: detailsMessageHanderl);
    router.define(personalCenter, handler: personalCenterHanderl);
    router.define(myVehicle, handler: myVehicleHanderl);
    router.define(newVehicleInformation, handler: newVehicleInformationHanderl);
    router.define(pickUpPassengers, handler: pickUpPassengersHanderl);
    router.define(detailsOfItineraryOrders,
        handler: detailsOfItineraryOrdersHanderl);
    router.define(cancellationOrder, handler: cancellationOrderHanderl);
    router.define(successfulCancellationOrder,
        handler: successfulCancellationOrderHanderl);
    router.define(confirmedAmount, handler: confirmedAmountHanderl);
    router.define(endTrip, handler: endTripHanderl);
    router.define(wallet, handler: walletHanderl);
    router.define(cashWithdrawal, handler: cashWithdrawalHanderl);
    router.define(cashwithdrawalSubmission,
        handler: cashwithdrawalSubmissionHanderl);
    router.define(itineraryOrder, handler: itineraryOrderHanderl);
    router.define(itineraryOrderDetails, handler: itineraryOrderDetailsHanderl);
    router.define(appSetUp, handler: appSetUpHanderl);
    router.define(customerServiceCenter, handler: customerServiceCenterHanderl);
    router.define(about, handler: aboutHanderl);
    router.define(inviteGoodFriends, handler: inviteGoodFriendsHanderl);
    router.define(personalData, handler: personalDataHanderl);
    router.define(webAppView, handler: webAppViewHanderl);
    router.define(flutterInappwebview, handler: flutterInappwebviewHanderl);
    router.define(intercityQrCodeCollection,
        handler: intercityQrCodeCollectionHanderl);
    router.define(intercityPickUpPassengers,
        handler: intercityPickUpPassengersHanderl);
    router.define(setCollectionAmount, handler: setCollectionAmountHanderl);
    router.define(locationSearchPage, handler: locationSearchPageHanderl);
    router.define(generateWindmillTrip, handler: generateWindmillTripHanderl);
    router.define(carpoolTrip, handler: carpoolTripHanderl);
    router.define(carpoolFellowPassengers,
        handler: carpoolFellowPassengersHanderl);
    router.define(lookingPassengers, handler: lookingPassengersHanderl);
    router.define(takePassengers, handler: takePassengersHanderl);
    router.define(carpoolPickupPassengers,
        handler: carpoolPickupPassengersHanderl);
    router.define(realNameAuthentication,
        handler: realNameAuthenticationHanderl);
    router.define(myQrCode, handler: myQrCodeHanderl);
    router.define(modifyNickname, handler: modifyNicknameHanderl);
    router.define(flightPassengers, handler: flightPassengersHanderl);
    router.define(getOnByTicket, handler: getOnByTicketHanderl);
    router.define(professionalQualification,
        handler: professionalQualificationHanderl);
    router.define(authorizationRecord, handler: getRecordAuthorization);
    router.define(agreementRecoid, handler: recordAgreement);
    router.define(realNameAuthen, handler: realNameAuthenHandler);
    router.define(carpoolPassengerMap, handler: carpoolPassengerMapHanderl);
    router.define(personalDetailData, handler: personalDetailDataHandler);
    router.define(certificatesInfo, handler: certificatesInfoHandler);
    router.define(billTabDetail, handler: billTabDetailHandler);
  }
}
